package com.javasm.adminapi.module.product1.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品管理-商品管理(GgGoods)表实体类
 *
 * @author makejava
 * @since 2025-10-15 20:31:10
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GgGoods extends Model<GgGoods> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String gcode;

    private String gname;

    private String gtype;

    private Double purchasePrice;
//鐢倸婧€娴犻攱鐗?
    private Double marketPrice;
//閸熷棗鐓勬禒閿嬬壐
    private Double shopPrice;

    private Integer stock;
//闁哄牃鍋撳ù锝呴缁ㄨ京鈧稒锕㈤崳?
    private Integer minStock;
//婢跺洦鏁?
    private String remark;

    private Integer productId;

    private Date createTime;

    private Date updateTime;

    private String gbrand;

    private String gmodel;

    private String gcolor;

    //用于封装对应的sid
    @TableField(exist = false)
    private Integer sid;

    //用于封装对应的类型名称（根据类型id进行查询）
    @TableField(exist = false)
    private String typeName;

}
